# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=zathura-pdf-mupdf
pkgver=0.3.5
pkgrel=2
pkgdesc="mupdf plugin to zathura"
url="https://git.pwmt.org/pwmt/zathura-pdf-mupdf"
arch="all"
license="zlib"
makedepends="meson ninja mupdf-dev zathura-dev girara-dev openssl-dev openjpeg-dev libjpeg-turbo-dev jbig2dec-dev"
depends="zathura !zathura-pdf-poppler"
source="https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/archive/$pkgver/zathura-pdf-mupdf-$pkgver.tar.gz
	c7f341addb76d5e6fd8c24c666d8fe97c451a4cb.patch"

options="!check" # no test suite

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		-Dlink-external=true \
		build
	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="1f7a748fee74296a008cef42c8f2e443409c77e16caa8441f74136260aaac7dee4d3c03e8a88532c45a0f9972e1b4965d4cffd488a00123d4d8cee9bcec2cf30  zathura-pdf-mupdf-0.3.5.tar.gz
d27145847bcac80644a13dfc474db1a88b8cd1def822d9ba0e0ffd454b699a75aad057960558318dc9be0abbc74499801a3542ef651e86853e5fc1f3d1bd2faa  c7f341addb76d5e6fd8c24c666d8fe97c451a4cb.patch"
